package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName blog_link
 */
@TableName(value ="blog_link")
public class BlogLink implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer linkId;

    /**
     * 名称
     */
    private String linkName;

    /**
     * 路径
     */
    private String linkUrl;

    /**
     * 链接logo
     */
    private String linkLogo;

    /**
     * 描述
     */
    private String linkDescribe;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getLinkId() {
        return linkId;
    }

    /**
     * 
     */
    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    /**
     * 名称
     */
    public String getLinkName() {
        return linkName;
    }

    /**
     * 名称
     */
    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    /**
     * 路径
     */
    public String getLinkUrl() {
        return linkUrl;
    }

    /**
     * 路径
     */
    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    /**
     * 链接logo
     */
    public String getLinkLogo() {
        return linkLogo;
    }

    /**
     * 链接logo
     */
    public void setLinkLogo(String linkLogo) {
        this.linkLogo = linkLogo;
    }

    /**
     * 描述
     */
    public String getLinkDescribe() {
        return linkDescribe;
    }

    /**
     * 描述
     */
    public void setLinkDescribe(String linkDescribe) {
        this.linkDescribe = linkDescribe;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogLink other = (BlogLink) that;
        return (this.getLinkId() == null ? other.getLinkId() == null : this.getLinkId().equals(other.getLinkId()))
            && (this.getLinkName() == null ? other.getLinkName() == null : this.getLinkName().equals(other.getLinkName()))
            && (this.getLinkUrl() == null ? other.getLinkUrl() == null : this.getLinkUrl().equals(other.getLinkUrl()))
            && (this.getLinkLogo() == null ? other.getLinkLogo() == null : this.getLinkLogo().equals(other.getLinkLogo()))
            && (this.getLinkDescribe() == null ? other.getLinkDescribe() == null : this.getLinkDescribe().equals(other.getLinkDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLinkId() == null) ? 0 : getLinkId().hashCode());
        result = prime * result + ((getLinkName() == null) ? 0 : getLinkName().hashCode());
        result = prime * result + ((getLinkUrl() == null) ? 0 : getLinkUrl().hashCode());
        result = prime * result + ((getLinkLogo() == null) ? 0 : getLinkLogo().hashCode());
        result = prime * result + ((getLinkDescribe() == null) ? 0 : getLinkDescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", linkId=").append(linkId);
        sb.append(", linkName=").append(linkName);
        sb.append(", linkUrl=").append(linkUrl);
        sb.append(", linkLogo=").append(linkLogo);
        sb.append(", linkDescribe=").append(linkDescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}